{__NOLAYOUT__}
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport"
		  content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<title>设置</title>
	{include file="public/script" /}
</head>
<body>
	<div class="sectionH  sectionH2 mui-clearfix">
		<header class="mui-bar mui-bar-nav" style="">
			<a class="mui-icon mui-icon-left-nav  mui-pull-left" href="{:url('User/index')}" style="color: #727272;"></a>
			<h1 class="mui-title">设置</h1>
			<!--<a class="mui-icon mui-pull-right right1" href="assets-1.html"><img src="images/icon_setting.png"/></a>-->
		</header>
	</div>
	<div class="kong1"></div>
	<div class="set_section1">
		<ul>
			<li class="mui-clearfix">
				<a href="{:url('Set/setavatar')}" class="mui-clearfix">
					<p class="p1">头像</p>

					<p class="p2"><img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
					<img style="margin-top:3px;wdith:42px;height:42px;display: block;float: right;border-radius:50%;" src="{$info.avatar|default='/static/default_avatar.png'}">
				</a>
			</li>
			<li class="mui-clearfix">
				<a href="{:url('Set/setname')}" class="mui-clearfix">
					<p class="p1">姓名</p>
					<p class="p2">{$info.real_name} <img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
				</a>
			</li>
			<li class="mui-clearfix">
				<a href="javascript:void(0);" class="mui-clearfix">
					<p class="p1">电话</p>
					<p class="p2"><span data="{$info.mobile}" data-star="{$info.star_mobile}" id="plll">{$info.star_mobile}</span> <span class="s1 show_btnn">显示</span> </p>
				</a>
			</li>
			<li class="mui-clearfix">
				<a href="{:url('Set/setemail')}" class="mui-clearfix">
					<p class="p1">企业邮箱</p>
					<p class="p2">{$info.email}  <img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
				</a>
			</li>
			<li class="mui-clearfix">
				<a href="{:url('Set/setpassword')}" class="mui-clearfix">
					<p class="p1">修改密码</p>
					<p class="p2"><img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
				</a>
			</li>
			{if condition="$info.bussiness_id gt 0"}
			<div class="ge"></div>
			<li class="mui-clearfix">
				<a href="javascript:void(0);" class="mui-clearfix">
					<p class="p1">所属商会</p>
					<p class="p2">{$info.bussiness_title}</p>
				</a>
			</li>
			{/if}
			{if condition="$info.department_id gt 0"}
			<li class="mui-clearfix">
				<a href="javascript:void(0);" class="mui-clearfix">
					<p class="p1">部门</p>
					<p class="p2">{$info.department_title}</p>
				</a>
			</li>
			{/if}
			{if condition="$info.duties_id gt 0"}
			<li class="mui-clearfix">
				<a href="javascript:void(0);" class="mui-clearfix">
					<p class="p1">职务</p>
					<p class="p2">{$info.duties_title}</p>
				</a>
			</li>
			{/if}
			<div class="ge"></div>
			<li class="mui-clearfix">
				<a href="{:url('Set/setabstract')}" class="mui-clearfix">
					<p class="p1">个人简介</p>
					<p class="p2"><img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
				</a>
			</li>
			<li class="mui-clearfix">
				<a href="{:url('Set/setserver')}" class="mui-clearfix">
					<p class="p1">服务内容</p>
					<p class="p2"><img src="__STATIC__/www/images/mine_co_icon_more.png"/></p>
				</a>
			</li>

		</ul>
		
	</div>
	<div class="set_section2">
		<div class="container">
			<a href="javascript:logout();">退出登录</a>
		</div>
	</div>
</body>
<script type="text/javascript">
    $('.show_btnn').on('tap', function() {
        if($(this).html()=='显示'){
            $(this).html('隐藏');
            $("#plll").html($("#plll").attr('data'));
        }else{
            $(this).html('显示');
            $("#plll").html($("#plll").attr('data-star'));
        }
    });

	function logout() {
        var btnArray = ['否', '是'];
        mui.confirm('确认退出登录？', '', btnArray, function(e) {
            if (e.index == 1) {
				window.location.href='/Login/logout';
            } else {
                mui.toast('已取消退出');
            }
        })
    }
</script>
</html>